﻿using System.Windows;

namespace Samurai.WorkflowGraph.Views
{
    /// <summary>
    /// Interaction logic for WorkflowListView.xaml
    /// </summary>
    public partial class WorkflowListView
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="WorkflowListView"/> class.
        /// </summary>
        public WorkflowListView()
        {
            InitializeComponent();
        }

        private void OkButtonClick(object sender, RoutedEventArgs e)
        {
            var ownerWindow = (Window)Parent;
            ownerWindow.DialogResult = true;
        }

        private void CancelButtonClick(object sender, RoutedEventArgs e)
        {
            var ownerWindow = (Window)Parent;
            ownerWindow.DialogResult = false;
        }
    }
}
